package com.lsq.test;

import com.lsq.spring.Autowired;
import com.lsq.spring.Component;
import com.lsq.spring.InitializingBean;

/**
 * @author lsq
 * @description TODO
 * @date 2023/9/5
 */
@Component("userService")
public class UserService implements InitializingBean {
    @Autowired
    private OrderService orderService;

    private User user;
    public void test(){
        System.out.println(orderService);
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        user = new User();
    }
}
